#!/usr/bin/env python
# -*- coding: utf-8 -*-
from google.appengine.ext import webapp
from twiservice import TwiService
from sinaservice import SinaService
from google.appengine.ext.webapp.util import run_wsgi_app

class CheckTwi(webapp.RequestHandler):
    def get(self):
        twiservice=TwiService()
        twiservice.checkQueries()


class CheckSina(webapp.RequestHandler):
    def get(self):
        sinaservice=SinaService()
        sinaservice.checkQueries()

    
application = webapp.WSGIApplication([('/twi', CheckTwi),
                                      ('/sina', CheckSina)],
                                     debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main() 